import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";


const routes: Array<RouteRecordRaw> = [
    //默认路由
    {
        path: '/',
        name: 'HelloWorld',
        component: () => import('../components/HelloWorld.vue')
    },
    //登录路由
    {
        path:'/LoginAdd',
        name:'LoginAdd',
        component:()=>import('../views/User/LoginAdd.vue')
    },
    {
        path:'/Login',
        name:'Login',
        component:()=>import('../views/User/Login.vue')
    },
    {
        path:'/LoginInfo',
        name:'LoginInfo',
        component:()=>import('../views/User/LoginInfo.vue')   
    },
    //登录管理员路由
    {
        path:'/Login1',
        name:'Login1',
        component:()=>import('../views/Userlog/Login1.vue')
    },

    {
        path:'/YserInfo/:id',
        name:'YserInfo',
        component:()=>import('../views/Userlog/YserInfo.vue')
    },
    {
        path:'/MatserAdd',
        name:'MatserAdd',
        component:()=>import('../views/Userlog/MatserAdd.vue')
    },
    {
        path:'/MatserShow',
        name:'MatserShow',
        component:()=>import('../views/Userlog/MatserShow.vue')
    },
    //理财路由
    {
        path:'/FiniaLogin',
        name:'FiniaLogin',
        component:()=>import('../views/Finia/FiniaLogin.vue')
    },
    {
        path:'/MatserFiniaShow',
        name:'MatserFiniaShow',
        component:()=>import('../views/Finia/MatserFiniaShow.vue')
    },
    {
        path:'/UserFiniaShow',
        name:'UserFiniaShow',
        component:()=>import('../views/Finia/UserFiniaShow.vue')
    },
    {
        path:'/UserFiniaMoney/:id',
        name:'UserFiniaMoney',
        component:()=>import('../views/Finia/UserFiniaMoney.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router